<?php 
declare (strict_types = 1);
namespace app\api\controller;
use app\common\controller\Api;
use think\Request;
class BusinessHostReport extends Api
{
    //商户端-DM管理-表报列表
    public function index()
    {
        $this->businessCheckLogin();
        $post = param();
        if(!isset($post['id'])) return msgerror('参数缺失');
        $limit = input('limit') ?: 20;
        $data = $this->model->where([['business_id','=',$this->businessinfo['id']],['business_host_id','=',$post['id']]])->order('id desc')->paginate($limit);
        return datasuccess($data);
    }
}